package com.ace_server.other.sitemesh;

import org.sitemesh.SiteMeshContext;
import org.sitemesh.content.ContentProperty;
import org.sitemesh.content.tagrules.TagRuleBundle;
import org.sitemesh.content.tagrules.html.ExportTagToContentRule;
import org.sitemesh.tagprocessor.State;

public class ExtHtmlTagRuleBundle implements TagRuleBundle {


	@Override
    public void install(State defaultState, ContentProperty contentProperty,SiteMeshContext siteMeshContext) {
        defaultState.addRule("footer",new ExportTagToContentRule(contentProperty.getChild("footer"),false));//添加一个空 footer
        defaultState.addRule("before_footer",new ExportTagToContentRule(contentProperty.getChild("before_footer"),false));//添加一个空 before_footer
        defaultState.addRule("after_footer",new ExportTagToContentRule(contentProperty.getChild("after_footer"),false));//添加一个空 after_footer
	}
	
	@Override
	public void cleanUp(State defaultState, ContentProperty contentProperty,
			SiteMeshContext siteMeshContext) {
	}

}